<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap">
	<div class="nav">
		<div class="return">
			<a href='<yjd:url url="/admin/list"/>'>返回上一级</a>
		</div>
	</div>
	<form method="post" action='<yjd:url url="/admin/save"/>' class="J_ajaxForm" autocomplete="off">
		<input type="hidden" name="admin_id" value="${model.admin_id }">
		<div class="h_a">添加管理员</div>

		<div class="table_full">
			<table width="100%">
				<tr>
					<th width="100">角色组：</th>
					<td colspan="2">
					<table>
					
					         
							<c:forEach items="${adminRoleList }" var="item" varStatus="status">
							
                             <c:if test="${status.count==0}" >
                             <tr>
                             </c:if>
                              <c:if test="${status.count%8==1}" >
                               </tr><tr>
                             </c:if>
                             <td><input type="checkbox" value="${item.id }" name="roles" <c:if test="${item.strMap.isCheck==true}">checked</c:if> />${item.name }</input></td>
                             
							</c:forEach>
					 </table>
					</td>
				</tr>
				<tr>
					<th>登录名：</th>
					<td><input name="username" type="text" class="input length_2"
						value="${model.username }"></td>
					<td><div class="fun_tips"></div></td>
				</tr>
				<tr>
				<th>密码：</th>
				<td><input name="password" type="text" class="input length_2" value="">
				<c:if test="${not empty model.admin_id }">
				<span><font color="red">温馨提示：无需修改密码，请勿输入</font></span>
				</c:if>
				</td>
				<td></td>
				</tr>
			</table>
		</div>


		<div class="btn_wrap">
			<div class="btn_wrap_pd">
				<button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
			</div>
		</div>
	</form>
	<!-- end -->
</div>
